package org.jeecg.modules.openai.controller;


import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.openai.model.ChatModel;
import org.jeecg.modules.openai.service.OpenApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/view/openAi")
public class OpenAiController {


    @GetMapping("/chat")
    public ModelAndView getCode() {

        ModelAndView mv = new ModelAndView("chat");
        return mv;
    }


    @GetMapping("/imgView")
    public ModelAndView imgView() {

        ModelAndView mv = new ModelAndView("createOpenAIImg");
        return mv;
    }


}
